home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 13 / boot-disc-1997-09.iso / HyprWire / DATA.Z / 03 TextField.mdf < prev    next >
Text File  |  1997-01-21  |  8KB  |  334 lines

  1. kxKinetix
  2. kxType = kxSmalltalkJavaPlugIn
  3.  
  4. kxModuleDefinition TextField = 
  5.   {
  6.   kxPublicName = "Text Field"
  7.   kxVersion = "1.0"
  8.   kxCreationTime = "02/18/96  12:26:15 PM"
  9.   kxAuthor = "Kinetix"
  10.   kxLargeIcon = kxBmResType "ModIcons.dll" "DTEN02" 0xFF00FF
  11.   kxSmallIcon = kxBmResType "ModIcons.dll" "DTEN01" 0xFF00FF
  12.   kxSmalltalkLibraries = "widgets" 
  13.   kxSmalltalkProxyClass = DEBundle
  14.   kxFlags = kxEmbeddedWindow
  15.   kxShortDescription = "TextField widget which presents the user with a single editable line of text."
  16. //  kxHelpDoc = "http://www.hyperwire.com/helpdocs/Widgets/TextField/help.html"
  17.  
  18.   // The Java class which implements the plug-in...
  19.   kxPlugInClass = TextFieldPlugIn
  20.  
  21.   // The Smalltalk editor classes used to edit the properties of this plug-in...
  22.   kxPropertyEditors =  DataEntryEditor OpusLabelCommentEditor ModuleStateEditor SizePositionEditor OpusColorEditor PortEditor
  23.  
  24.   // The Smalltalk class which will draw the layout view representation for this plug-in...
  25.   kxLayoutViewProxyClass = DataEntryAuthorRep
  26.  
  27.  
  28.   kxInputPorts =
  29.     {
  30.     kxInclude "Basic.ipt"
  31.     kxInclude "VisualBasicCommon.ipt"
  32.     kxPort MakeClickable =
  33.       {
  34.       kxFlags = kxSystem
  35.       kxJavaMethod = wiMakeClickable
  36.       kxJavaSignature = "()Z"
  37.       kxPublicNames = "Make Clickable" "Was UnClickable"
  38.       }
  39.  
  40.     kxPort MakeUnClickable =
  41.       {
  42.       kxFlags = kxSystem
  43.       kxJavaMethod = wiMakeUnClickable
  44.       kxJavaSignature = "()Z"
  45.       kxPublicNames = "Make UnClickable" "Was Clickable"
  46.       }
  47.  
  48.     kxPort MakeEditable =
  49.       {
  50.       kxJavaMethod = wiMakeEditable
  51.       kxJavaSignature = "()Z"
  52.       kxPublicNames = "Make Editable" "Was UnEditable"
  53.       }
  54.  
  55.     kxPort MakeUnEditable =
  56.       {
  57.       kxJavaMethod = wiMakeUnEditable
  58.       kxJavaSignature = "()Z"
  59.       kxPublicNames = "Make UnEditable" "Was Editable"
  60.       }
  61.  
  62.     kxPort SelectAll =
  63.       {
  64.       kxJavaMethod = wiSelectAll
  65.       kxJavaSignature = "()Z"
  66.       kxPublicNames = "Select All" "Is TextField valid"
  67.       }
  68.  
  69.     kxPort SetSelection =
  70.       {
  71.       kxJavaMethod = wiSetSelection
  72.       kxJavaSignature = "(LPoint;)Z"
  73.       kxPublicNames = "Set Selection" "a caret position or range (aPoint)" "Is TextField Valid"
  74.       }
  75.  
  76.     kxPort GetSelection =
  77.       {
  78.       kxJavaMethod = wiGetSelection
  79.       kxJavaSignature = "()LPoint"
  80.       kxPublicNames = "Get Selection" "Selection start,end"
  81.       }
  82.  
  83.     kxPort GetSelectedText = 
  84.       {
  85.       kxJavaMethod = wiGetSelectedText
  86.       kxJavaSignature = "()LString"
  87.       kxPublicNames = "Get Selected Text" "Selected Text String"
  88.       }
  89.  
  90.     kxPort SetFocusandEnable =
  91.       {
  92.       kxJavaMethod = wiEnableAndSetFocus
  93.       kxJavaSignature = "()Z"
  94.       kxPublicNames = "Set Focus and Enable" "Was TextField Not Focussed"
  95.       }
  96.  
  97.     kxPort SetFocus =
  98.       {
  99.       kxJavaMethod = wiSetFocus
  100.       kxJavaSignature = "()Z"
  101.       kxPublicNames = "Set Focus" "Was TextField Not Focussed"
  102.       }
  103.  
  104.     kxPort LoseFocus =
  105.       {
  106.       kxJavaMethod = wiKillFocus
  107.       kxJavaSignature = "()Z"
  108.       kxPublicNames = "Lose Focus" "Was TextField Focussed"
  109.       }
  110.  
  111.     kxPort GetLength =
  112.       {
  113.       kxJavaMethod = wiGetTextLength
  114.       kxJavaSignature = "()I"
  115.       kxPublicNames = "Get Length" "Text Length"
  116.       }
  117.  
  118.     kxPort GetLastKeystroke =
  119.       {
  120.       kxJavaMethod = wiGetLastKeystroke
  121.       kxJavaSignature = "()LString"
  122.       kxPublicNames = "Get Last Keystroke" "Last Character as String"
  123.       }
  124.  
  125.     kxInclude "BackAndForeColor.ipt"
  126.  
  127.     kxPort GetText = 
  128.       {
  129.       kxJavaMethod = wiGetText
  130.       kxJavaSignature = "()LString"
  131.       kxPublicNames = "Get Text" "Text String"
  132.       }
  133.  
  134.     kxPort SetText = 
  135.       {
  136.       kxJavaMethod = wiSetText
  137.       kxJavaSignature = "(LString;)LString"
  138.       kxPublicNames = "Set Text" "string" "Old Text String"
  139.       }
  140.  
  141.     kxPort GetEchoCharacter =
  142.       {
  143.       kxJavaMethod = wiGetEchoCharacter
  144.       kxJavaSignature = "()LString"
  145.       kxPublicNames = "Get Echo Character" "Echo Character"
  146.       }
  147.  
  148.     kxPort SetEchoCharacter =
  149.       {
  150.       kxJavaMethod = wiSetEchoCharacter
  151.       kxJavaSignature = "(LString;)LString"
  152.       kxPublicNames = "Set Echo Character" "Echo Character" "Old Echo Character"
  153.       }
  154.  
  155.     kxPort SetFilteredCharacter =
  156.       {
  157.       kxJavaMethod = wiSetFilteredCharacter
  158.       kxJavaSignature = "(LString;)LString"
  159.       kxPublicNames = "Set Filtered Character" "Filtered Character" "Old Filtered Character"
  160.       }
  161.  
  162.     kxPort ClearText =
  163.       {
  164.       kxJavaMethod = wiClearText
  165.       kxJavaSignature = "()Z"
  166.       kxPublicNames = "Clear Data" "true"
  167.       }
  168.  
  169.     kxPort Enable =
  170.       {
  171.       kxJavaMethod = wiEnable
  172.       kxJavaSignature = "()Z"
  173.       kxPublicNames = "Enable" "Was not Enabled"
  174.       }
  175.  
  176.     kxPort IsDisabled =
  177.       {
  178.       kxJavaMethod = wiIsDisabled
  179.       kxJavaSignature = "()Z"
  180.       kxPublicNames = "Is Disabled?" "Is Disabled"
  181.       }
  182.  
  183.     kxPort Disable =
  184.       {
  185.       kxJavaMethod = wiDisable
  186.       kxJavaSignature = "()Z"
  187.       kxPublicNames = "Disable" "Was not Disabled"
  188.       }
  189.     }
  190.  
  191.  
  192.   kxInputPortsMenu =
  193.     {
  194.     Reset
  195.     On
  196.     Off
  197.     Toggle
  198.     kxSeparator
  199.     Enable
  200.     Disable
  201.     kxSeparator
  202.     SetText
  203.     SetFocus
  204.     SelectAll
  205.     GetText
  206.     kxMenu "More" =
  207.       {
  208.       kxInclude "Basic.imn"
  209.       kxMenu "Position"
  210.         {
  211.         kxInclude "PositionBasic.imn"
  212.         }
  213.       kxInclude "Size.imn"
  214.       kxInclude "Visibility.imn"
  215.       kxInclude "BackAndForeColor.imn"
  216.       kxMenu "State" =
  217.         {
  218.         MakeClickable
  219.         MakeEditable
  220.         kxSeparator
  221.         MakeUnClickable
  222.         MakeUnEditable
  223.         }
  224.       kxSeparator
  225.       kxMenu "Data Entry" =
  226.         {
  227.         GetText
  228.         GetLastKeystroke
  229.         GetEchoCharacter
  230.         GetLength
  231.         kxSeparator
  232.         SetText
  233.         SetEchoCharacter
  234.         SetFilteredCharacter
  235.         ClearText
  236.         }
  237.       kxMenu "Focus" =
  238.         {
  239.         LoseFocus
  240.         SetFocus
  241.         SetFocusandEnable
  242.         }
  243.       kxMenu "Selection" =
  244.         {
  245.         GetSelectedText
  246.         GetSelection
  247.         kxSeparator
  248.         SetSelection
  249.         SelectAll
  250.         }
  251.       }
  252.     }
  253.  
  254.  
  255.   kxOutputPorts =
  256.     {
  257.     kxInclude "MouseEvt.opt"
  258.     kxInclude "SizePos.opt"
  259.     kxPort CarriageReturn =
  260.       {
  261.       kxJavaSignature = "(LHwObject;)V"
  262.       kxPublicNames = "Carriage Return" "text string" "Not Specified"
  263.       }
  264.  
  265.     kxPort EscapeCharacter =
  266.       {
  267.       kxJavaSignature = "(LHwObject;)V"
  268.       kxPublicNames = "Escape Character" "text string" "Not Specified"
  269.       }
  270.  
  271.     kxPort TabCharacter =
  272.       {
  273.       kxJavaSignature = "(LHwObject;)V"
  274.       kxPublicNames = "Tab Character" "text string" "Not Specified"
  275.       }
  276.  
  277.     kxPort CharacterEntered =
  278.       {
  279.       kxJavaSignature = "(LHwObject;)V"
  280.       kxPublicNames = "Character Entered" "keystroke string" "Not Specified"
  281.       }
  282.  
  283.     kxPort CharacterDisplayed =
  284.       {
  285.       kxJavaSignature = "(LHwObject;)V"
  286.       kxPublicNames = "Character Displayed" "keystroke echo string" "Not Specified"
  287.       }
  288.  
  289.     kxPort GettingFocus =
  290.       {
  291.       kxJavaSignature = "()V"
  292.       kxPublicNames = "Getting Focus" "Not Specified"
  293.       }
  294.  
  295.     kxPort LosingFocus =
  296.       {
  297.       kxJavaSignature = "()V"
  298.       kxPublicNames = "Losing Focus" "Not Specified"
  299.       }
  300.     }
  301.  
  302.  
  303.   kxOutputPortsMenu =
  304.     {
  305.     CarriageReturn
  306.     EscapeCharacter
  307.     CharacterDisplayed
  308.     kxSeparator
  309.     kxMenu "Mouse Events" =
  310.       {
  311. //      ButtonUp
  312. //      ButtonDown
  313. //      kxSeparator
  314.       MouseEnter
  315.       MouseLeave
  316.       }
  317. //    kxMenu "Focus Events" =
  318. //      {
  319. //      GettingFocus
  320. //      LosingFocus
  321. //      }
  322.     kxInclude "SizePos.omn"
  323.     kxSeparator
  324.     kxMenu "Data Entry" =
  325.       {
  326.       CarriageReturn
  327.       EscapeCharacter
  328.       TabCharacter
  329.       CharacterEntered
  330.       CharacterDisplayed
  331.       }
  332.     }
  333.   }
  334.